<!DOCTYPE HTML>
<HTML>
 <HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <TITLE> New Document </TITLE>
  <script>

	
	window.onload = function(){		

		var d1 = document.getElementById('d1');

function Person(){this.name='jack';}
var w = new Object(window),
	d = new Object(document),
	p = new Object(new Person());

console.log(w.constructor); //-> Window
console.log(d.constructor); //-> HTMLDocument
console.log(p.constructor); //-> Person

var s = new Object('hello'),
	n = new Object(22),
	b = new Object(true);

console.log(typeof s);
console.log(typeof n);
console.log(typeof b);

console.log(s.constructor); //-> String
console.log(n.constructor); //-> Number
console.log(b.constructor); //-> Boolean

var obj1 = new Object,
	obj2 = {};

var o1 = new Object(obj1);
	o2 = new Object(obj2);

console.log(o1.constructor); //-> Object
console.log(o2.constructor); //-> Object

	}


  </script>
 </HEAD>

 <BODY>
	<div id="d1">D11111111</div>
 </BODY>
</HTML>
